﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.EnterpriseLibrary.Logging;

namespace KingSite.Library.Log.MSLogWrapper {
    public class MSLogWrapper : ILog {
        public void AddLog(string msg) {
            AddLog(msg, DateTime.Now);
        }
        public void AddLog(string msg, DateTime time) {
            LogEntry log = new LogEntry();
            log.Message = msg;
            log.TimeStamp = time;
            log.Title = "";
            Logger.Write(log);
        }
    }
}
